package com.kakame.hejek.controller;

import com.kakame.dibaaz.annotation.Module;
import com.kakame.dibaaz.annotation.ToView;
import com.kakame.dibaaz.box.WebBox;
import com.kakame.dibaaz.cons.RequestType;
import com.kakame.dibaaz.cons.ResponseType;

@Module("/hello")
public class HelloDibaazController {
	
	@ToView(url = "/sayHello", view = "hello", responseType=ResponseType.PAGE, requestType = {RequestType.GET, RequestType.POST})
	public WebBox sayHello(WebBox webBox) {
		System.out.println("Hello dibaaz");
		return webBox;
	}
}
